//FORM表单验证
$(function(){
	var options_array = [ { name:"employee.userName",type:"username",simple:"用户名",focusMsg:'数字和英文及下划线和.的组合，开头为字母，4-20个字符'},
					      { name:"employee.password",type:'password',simple:"密码",focusMsg:'最小长度:6 最大长度:20'},
					      { name:"employee.realName",type:"chn",simple:"真实姓名",focusMsg:'必须填写汉字'},
					      { name:"employee.phone",type:"telephone",simple:"电话",focusMsg:'请输入有效的电话'},
					      { name:"employee.groupId",simple:"集团名称",focusMsg:'请选择集团名称'},
					      { name:"employee.companyId",simple:"公司名称",focusMsg:'请选择公司名称'},
					      { name:"employee.collieryId",simple:"矿区名称",focusMsg:'请选择矿区名称'},
					      { name:"employee.departmentId",simple:"部门名称",focusMsg:'请选择部门名称'},
					      { name:"employee.age",min:0,max:3,type:"int",simple:"年龄",focusMsg:'请输入合法的年龄'},
					      { name:"employee.birthday",type:"date",simple:"出生日期",focusMsg:'请输入合法的出生日期'},
					      { name:"employee.homeAddress",min:2,max:40,simple:"家庭住址",focusMsg:'必须是2到40和字符'}
					    ];
	$("#employeeForm").valid({
		items:options_array
	});
			
});